package com.mz.ozy.mvp.view;

import android.app.Activity;
import android.content.Context;

import com.mz.ozy.base.BasePresenter;
import com.mz.ozy.base.BaseView;
import com.mz.ozy.bean.MeBean;
import com.mz.ozy.bean.MsgBean;
import com.mz.ozy.bean.MsgDetailBean;
import com.mz.ozy.bean.OrderMsgBean;
import com.mz.ozy.bean.UnreadMsgBean;

import org.json.JSONObject;

/**
 * @author
 * @date 2018/7/25
 * @description
 */
public class MsgContract {
    public interface View extends BaseView {
        void getMsgrListSuccess(MsgBean bean);

        void getMsgDetailSuccess(MsgDetailBean jsonObject);

        void getAgmentDetailSuccess(JSONObject jsonObject);

        void getgetMeInfoSuccess(MeBean bean);
        void getOrderMsgrListSuccess(OrderMsgBean bean);

        void getUnreadMsgSuccess(UnreadMsgBean bean);
    }

    public interface Presenter extends BasePresenter<View> {
        void getMeInfo(Activity activity, boolean isShow);

        void getMsgList(Activity activity, String type, String pageNo);

        void getOrderMsgList(Activity activity, String pageNo);

        void getMsgDetail(Activity activity, String id);

        void getAgmentDetail(Activity activity, String id);

        void getUnreadMsg(Context context);
    }
}
